<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<script type="text/javascript">
<!--
	
//-->
</script>
<div class="pageContent">
	<c:choose>
		<c:when test="${empty errorMsg }">
			<div class="panelBar">
				<div style="text-align: left;line-height: 23px;margin-left: 5px;">
					[&nbsp;<font color="blue">${cashDrive.sclName }</font>&nbsp;]-审批历史
				</div>
			</div>
			<div>
				<c:choose>
					<c:when test="${!empty recordList}">
						<table class="table" width="100%" border="1" >
							<thead>
								<tr>
									<th>序号</th>
									<th>结算日期</th>
									<th>新增用户数</th>
									<th>结算费用</th>
									<th>批复金额</th>
									<th>备注</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${recordList }" var="bal" varStatus="status">
									<tr>
										<td>${(status.index+1) + (currentPage-1) * numPerPage}</td>
										<td>
											<fmt:parseDate value="${bal.ywEndDate}" var="ywEndDate" pattern="yyyyMMdd"/>  
											<fmt:formatDate value="${ywEndDate}" pattern="yyyy-MM-dd" /> 
										</td>
										<td>${bal.inschOpenNum}</td>
										<td><fmt:formatNumber value="${bal.ywUseRate}" type="number" pattern="0.00%" /></td>
										<td><fmt:formatNumber value="${bal.balFee}" type="number" pattern="￥0.00" /></td>
										<td><fmt:formatNumber value="${bal.payFee}" type="number" pattern="￥0.00" /></td>
										<td>${bal.specDeclare}</td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</c:when>
					<c:otherwise>
						<div style="text-align: center;color: red;padding-top: 20px;">*&nbsp;该地区暂无历史申请记录！</div>
					</c:otherwise>
				</c:choose>
			</div>
		</c:when>
		<c:otherwise>
			<div style="padding: 5px;color: red;">页面加载错误！${errorMsg }</div>
		</c:otherwise>
	</c:choose>
</div>